package com.ml.mall.mapper.delivery;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ml.mall.bean.req.delivery.DeliveryDashboardReq;
import com.ml.mall.bean.res.dashboard.RecentDeliveryRes;
import com.ml.mall.entity.delivery.SysOrderDelivery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysOrderDeliveryMapper extends BaseMapper<SysOrderDelivery> {
    //根据卖家订单号；订单号；查询物流信息
    SysOrderDelivery selectSysOrderDelivery(@Param("supplierOid") String supplierOid,@Param("oid") Long oid);


    /**
     * @description    :管理员查询今日物流
     * @author         :zxm
     * @date           :2021/5/24
    **/
    List<RecentDeliveryRes> selectRecentDeliveryByAdmin(@Param("companyName") String companyName,String timeDate );

    /**
     * @description    :合作伙伴查询今日物流
     * @author         :zxm
     * @date           :2021/5/24
    **/
    List<RecentDeliveryRes> selectRecentDeliveryByPartner(@Param("invitCode") String invitCode,@Param("timeDate") String timeDate);

    /**
     * @description    :卖家查询今日物流
     * @author         :zxm
     * @date           :2021/5/25
    **/
    List<RecentDeliveryRes> selectRecentDeliveryBySupplier(@Param("companyId")Long companyId,@Param("timeDate") String timeDate);

    /**
     * @description    :买家查询今日物流
     * @author         :zxm
     * @date           :2021/5/25
    **/
    List<RecentDeliveryRes> selectRecentDeliveryByPurchaser(@Param("companyId")Long companyId,@Param("timeDate") String timeDate);
}